// my/pages/mzhMyBackGoods/mzhMyBackGoods.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list:[
      {
        "id":1,
        "status":0,
        "name":"甜玉米",
        "text":"900g",
        "price":39.00,
        "createTime":"2025-08-10 10:00:00"
      },
      {
        "id":2,
        "status":1,
        "name":"甜玉米",
        "text":"900g",
        "price":39.00,
        "createTime":"2025-08-10 10:00:00"
      },
    ]
  },


  // 跳转页面
  toDetail(e){
    console.log(e);
    var id = e.currentTarget.dataset.id
    var status = e.currentTarget.dataset.status
    if(status===0){
      wx.navigateTo({
        url: '/my/pages/mzhMyBackMoneyNo/mzhMyBackMoneyNo?id='+id,
      })
    }else{
      wx.navigateTo({
        url: '/my/pages/mzhMyBackMoneyYes/mzhMyBackMoneyYes?id='+id,
      })
    }

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

})